#include <stdio.h>
#include <stdlib.h>

int binary_find(int *arr,const int len,const int target)
{
    int left = 0;
    int right = len-1;

    while (left <= right)
    {
        int mid = left+(right-left)/2;

        if (arr[mid] < target)
        {
            left = mid+1;
        }
        else if (arr[mid] > target)
        {
            right = mid-1;
        }
        else 
        {
            return mid;
        }
    }
    return -1;
}

int main()
{
    int s,n;
    scanf("%d%d",&s,&n);

    srand(s);

    int m = 0;  
    for (int i = 0;i < n;i++)
    {
        double y = (double)rand()/RAND_MAX;
        double x = (double)rand()/RAND_MAX+1;
        double r_y = 1/x;
        printf("%lf %lf\n",x,y);
        break;
    }
    double res = (double)m/n;

    printf("%lf\n",res);
    return 0;
}